#ifndef CGERADORCAPTCHA_H
#define CGERADORCAPTCHA_H

#include <QDeclarativeImageProvider>
#include <QDebug>

class CGeradorCaptcha : public QDeclarativeImageProvider
{
public:
    explicit CGeradorCaptcha();

    QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize);

    void setImagem(const QByteArray &img);

private:
    QByteArray _img;

signals:

public slots:

};

inline void CGeradorCaptcha::setImagem(const QByteArray &img) { _img = img; }

#endif // CGERADORCAPTCHA_H
